# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models
import projectapp.timestampfield as fields
# Create your models here.

class file_upload_data(models.Model):
    title=models.CharField(max_length=100)
    type=models.CharField(max_length=100)
    label=models.CharField(max_length=100)
    path=models.CharField(default='NA',max_length=150)
    msg=models.CharField(default='NA',max_length=150)
    response_status=models.CharField(default='200',max_length=50)
    name=models.CharField(default='NA',max_length=200)
    sql_id=models.CharField(max_length=50,default='NA')
    same_id=models.CharField(max_length=150,default='NA')
    img_size=models.CharField(max_length=50,default='NA')
    img_height=models.CharField(max_length=50,default='NA')
    img_width=models.CharField(max_length=50,default='NA')
    username=models.CharField(max_length=100,default='NA')
    file_format=models.CharField(max_length=100,default='NA')
    bf_time= fields.TimestampField()
    class Meta:
        ordering = ('-bf_time',)
    def  __unicode__ (self):
        return self.title


class user_messages(models.Model):
    username=models.CharField(max_length=50)
    password=models.CharField(max_length=50)
    email=models.CharField(max_length=50)
    bf_time = fields.TimestampField()
    class Meta:
        ordering = ('-bf_time',)
    def  __unicode__ (self):
        return self.username